package ycl.common.models.req.base;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 单个对象查询
 *
 * @author YCL
 * @date 2021-10-05 17:23:59
 */
@Data
@ApiModel("单个对象查询, 可传任何对象")
public class ObjReq<T> {

	@Schema(description = "任意对象")
	@NotNull(message = "obj不能为空")
	private T obj;
}
